:root {
    --primary-color: #1a73e8;
    --hover-color: #1557b0;
    --error-color: #dc3545;
    --success-color: #28a745;
    --background-color: #f8f9fa;
    --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
    --sidebar-width: 250px;
}

.admin-page {
    min-height: 100vh;
    display: flex;
    background-color: var(--background-color);
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.admin-sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar-title {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
}

.admin-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-menu-item {
    margin-bottom: 0.5rem;
}

.admin-menu-link {
    display: block;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color var(--transition-speed) ease;
}

.admin-menu-link:hover,
.admin-menu-link.active {
    background-color: var(--hover-color);
}

.admin-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.admin-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.admin-logout {
    padding: 0.5rem 1rem;
    background-color: var(--error-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.admin-logout:hover {
    background-color: #c82333;
}

.admin-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background-color: #f8f9fa;
    font-weight: 500;
    color: #666;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover {
    background-color: #f8f9fa;
}

.admin-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    font-size: 0.875rem;
    transition: opacity var(--transition-speed) ease;
    margin-right: 0.5rem;
}

.admin-button:last-child {
    margin-right: 0;
}

.admin-button:hover {
    opacity: 0.8;
}

.admin-button.edit {
    background-color: #2196F3;
}

.admin-button.delete {
    background-color: var(--error-color);
}

.admin-button.lock {
    background-color: #FF9800;
}

.admin-button.unlock {
    background-color: var(--success-color);
}

.admin-button.promote {
    background-color: #9C27B0;
}

.admin-message {
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.admin-message.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.admin-message.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(220, 53, 69, 0.2);
}